package com.mb.app.controller;


import com.alibaba.fastjson.JSONObject;
import com.mb.common.utils.R;
import io.swagger.annotations.Api;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author mb 1992lcg@163.com
 */
@RequestMapping("/demo")
@RestController
@Api("APP测试接口")
public class DemoController {

    @GetMapping("/test")
    public String test(){
        R r = R.ok().put("msg", "test");
        //service
        return JSONObject.toJSONString(r);
    }


}
